package lab02.test09;
import java.util.Scanner;
public class Test09 {
  public static void main(String[] args) {

           Student c1=new Student();

         Scanner sc=new Scanner(System.in);

        Scanner s=new Scanner(System.in);
     System.out.println("请输入学生学号:");

               c1.num=sc.nextInt();

              System.out.println("请输入学生姓名:");

             c1.name=s.nextLine();

              System.out.println("请输入班级号码:");

              c1.classes=sc.nextInt();

               System.out.println("性别:");

               c1.sex=s.nextLine();

              System.out.println("年龄:");

              c1.age=sc.nextInt();

              c1.tostring();



                        }

}